package com.blb.community_admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.community_admin.entity.SysPost;

/**
 * @author hkp
 */
public interface ISysPostService extends IService<SysPost> {

    /**
     * 根据userId查询post信息
     * @param userId
     * @return
     */
    SysPost getPostByuserId(long userId);

    /**
     * 分页查询
     *
     * @param current
     * @param size
     * @param postCode
     * @param postName
     * @param status
     * @return
     */
    IPage<SysPost> selectPostPage(Integer current, Integer size, String postCode, String postName, String status);
}
